package composite.abstrac.impl;

import composite.abstrac.Component;
import composite.view.View;
import log.Log;

public class MFile extends Component implements View {


    public MFile(String name) {
        super(name);
    }

    @Override
    public void onDraw() {
        drawSpan(deepth);
        Log.printName(this.name , Log.purple);
        System.out.println();
    }

    @Override
    public String getColor() {
        return Log.green_blue;
    }

    @Override
    public String getBgColor(String buider) {
        if (parent!=null){
            return ((View) parent).getBgColor(buider);
        }
        return Log.black;
    }
}
